export const renderArticleTrend = (xAxis:string[],yAxis:number[]) => {
// '#44D7B6 '
    return {
        color: ['#FF8634'],
        tooltip: {
            trigger: 'axis',
        },
        legend: {
            right: 0,
            show:false
        },
        grid: {
            top: 60,
            bottom: 20,
            left: 40,
            right: 40,
            containLabel: true,
        },
        xAxis: {
            type: 'category',
          
            boundaryGap: false,
            data: xAxis,
            
          
        },
        yAxis: {
            type: 'value',
            name: '篇',
            axisLabel: {
                formatter: '{value}',
            },
           
        },
        series:[{
            name: '文章数量',
            type: 'line',
            data: yAxis,
            smooth: true,
            symbol: 'none',
            markPoint: {
                data: [
                    { type: 'max', name: 'Max' },
                    { type: 'min', name: 'Min' },
                ],
            },
          }]
    };
};
